開放街圖營業時間編輯器

OpenStreetMap 營業時間規範相當複雜,並不易於一個簡單直觀的使用者介面。

然而大部分的時候,你應該只會用到一小部分的定議。編輯器嘗試在選單中隱藏更加模糊的功能,來達成這一點,大部分的時候減少路上設定,儘可能用預先設定的模版,加以小量修改。

這份文件是初步的並且正在進展

使用營業時間編輯器

在一般的工作流程中,你編輯的物件一般已經有開放時間的標籤 (opening_hour、service_times 和 colllection_times),或是你可以重新設定物件的預設組合,用空白的開放時間欄位。如果你需要手動輸入欄位,像是用 Vespucci,你可以在詳情頁面輸入鍵值,之後切換回欄位頁籤繼續編輯。如果你相信開放時間標籤必須扅於預設組合的話,請在你的編輯器開啟 issue。

If you have defined a default template (do this via the "Manage templates" menu item) it will be loaded automatically when the editor is started with an empty value. With the "Load template" function you can load any saved template and with the "Save template" menu you can save the current value as a template. You can define separate templates and defaults for the "opening_hours", "collection_times" and "service_times" tags. Further you can limit applicability of a template to a region and a specific identifier, typically an OSM top-level tap (for example amenity=restaurant).

當然,您可以從頭開始構建營業時間的值,但我們建議使用現有的模板之一作為起點。

如果已經有營業時間的數值則會載入,另外會自動修正以符合營業時間規範。如果無法修正,則會在大概的位置顯示錯誤訊息,原始的營業時間數值,等待人工修正。開放街圖資料庫中有大約1/4的營業時間數值有問題,但只有少於10%的狀況是無法修正。詳見 OpeningHoursParser,並且看有那些允許的規範變體。

主選單按鈕

規則

預設規則會依 normal rules 增加,意味將直接套用並且覆寫同一天原先規則的數值。這可能會為套用延伸時間規則帶來困擾,特別是你希望透過 顯示規則類別 選單 追加 轉換規則。

規則選單

時間跨度

要讓編輯時間刻度變得更簡單可行,我們嘗試選擇最佳時間範圍,加載現有值時範圍欄的刻度。對新的時間刻度來說,欄從6:00(am)開始,然後每15分鐘增加。上述的設定可以在選單更改。

當你直接用時間軸太困難時,點 (不是在別針上) 在時間軸上,會打開比較大的時間檢取器。時間檢取器會延伸到下一天,所有簡單的方式延長時間區間,但不用刪除再加區間。

時間跨度選單

管理模版

The template management dialog allows you to add, edit and delete templates.

In Android 4.4 and later the following additional functionality is available from the menu button.